package com.tencent.ncnnyolox.discern;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * <pre>
 *     author : yh
 *     e-mail : xxx@xx
 *     time   : 2023/12/14
 *     desc   :
 * </pre>
 */
@Entity
public class Message {
   public static final int TYPE_RECEIVED = 0;
   public static final int TYPE_SENT = 1;

   @Id(autoincrement = true)
   private Long id;
   private String content;
   private int type;

   public Message(String content,int type){
      this.content = content;
      this.type = type;
   }

   @Generated(hash = 1433033119)
   public Message(Long id, String content, int type) {
       this.id = id;
       this.content = content;
       this.type = type;
   }

   @Generated(hash = 637306882)
   public Message() {
   }

   public String getContent() {
      return content;
   }

   public int getType() {
      return type;
   }

   public Long getId() {
       return this.id;
   }

   public void setId(Long id) {
       this.id = id;
   }

   public void setContent(String content) {
       this.content = content;
   }

   public void setType(int type) {
       this.type = type;
   }
}
